package equation;

public class ExactDivisionChecker implements EquationChecker {

    public ExactDivisionChecker() {
    }

    @Override
    // 检查被除数是否为0以及能否整除
    public boolean check(Equation equation) {
        return equation.getOperandB() != 0 && equation.getOperandA() % equation.getOperandB() == 0;
    }

}